﻿using Oxage.CNC;
using Oxage.Windows.Controls;

namespace Oxage.Commands
{
	[CommandLineHandler("log", "Writes a message to log window")]
	public class LogCommandLineHander : ICommandLineHandler
	{
		#region ICommandLineHandler Members
		public void Run(IConsole console, string line, string command, Arguments args)
		{
			if (args.Count > 0)
			{
				App.WriteLine(line.Substring(command.Length + 1).Replace("\\n", "\n"));
			}
		}
		#endregion
	}
}
